import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'

import router from './router/index.js'
import './styles/index.less'
import axios from './utils/request.js'
import Breadcrum from './components/breadcrum'
import MyChannel from './components/myChannel'
import MyCover from './components/myCover'

Vue.prototype.$axios = axios
// 创建一个Vue实例，来充当事件总线
Vue.prototype.$eventBus = new Vue()

console.log(Vue)
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.component('MyCover', MyCover)
Vue.component('MyChannel', MyChannel)
Vue.component('breadcrum', Breadcrum)
// Vue.component('mycom', {
//   render: h => h('div', 'mycom')
// })
// 定义全局的面包屑组件
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
